import request from '@/utils/request'
import qs from 'qs'
interface User {
  phone: string;
  password: string;
}
export function login (data: User) {
  return request({
    method: 'POST',
    url: '/front/user/login',
    data: qs.stringify(data)
  })
}
export function getUserInfo () {
  return request({
    method: 'GET',
    url: '/front/user/getInfo'
  })
}
